package com.designed.pattern.creational.factorymethod;

import com.designed.pattern.creational.factorymethod.core.Operation;

/**
 * @author yifei
 * @date 2024/3/28
 **/
public class Test {
    public static void main(String[] args) {
        OperationFactory operationFactory = new OperationFactory();
        Operation operation = operationFactory.createOperation("+");
        System.out.println(operation.getResult(1,2));
    }
}
